/**
 * Created by Dean on 2017/11/28.
 */

window.onload = function(){
    fixMainBox();
    $('.solar > div').click(function(){
        $(this).addClass('active').siblings().removeClass('active');
    });
};

fixMainBox = function(){
    if(window.innerWidth>=window.innerHeight){
        $('.solar').addClass('w').removeClass('h');
    }else{
        $('.solar').addClass('h').removeClass('w')
    }
};

$(window).resize(function(){
  fixMainBox();
});

